From: Olaf Hering Date: Mon, 22 Sep 2014 13:00:05 +0000 (+0200) Subject: tools/libxc: provide variable paths to libxc X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~4362 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=ad1f562eb7fd57e8f682c936d804a6c13bab7610;p=xen.git tools/libxc: provide variable paths to libxc In preparation to remove hardcoded /var/run/xen paths, provide XEN_RUN_DIR and related directories to xc_private.h. Similar code exists already for libxl, stubdom and other parts. Signed-off-by: Olaf Hering Acked-by: Ian Campbell --- diff --git a/.gitignore b/.gitignore index c7cb679ad4..eeae5fc0bc 100644 --- a/.gitignore +++ b/.gitignore @@ -306,6 +306,7 @@ tools/include/xen-foreign/arm64.h .git tools/misc/xen-hptool tools/misc/xen-mfndump +tools/libxc/_*.[ch] tools/libxl/_*.[ch] tools/libxl/testidl tools/libxl/testidl.c diff --git a/tools/libxc/Makefile b/tools/libxc/Makefile index 3b04027135..3c390f8c5b 100644 --- a/tools/libxc/Makefile +++ b/tools/libxc/Makefile @@ -122,6 +122,14 @@ ifneq ($(nosharedlibs),y) LIB += xenctrl_osdep_ENOSYS.so endif +genpath-target = $(call buildmakevars2header,_paths.h) +$(eval $(genpath-target)) + +xc_private.h: _paths.h + +$(CTRL_LIB_OBJS) $(GUEST_LIB_OBJS) $(OSDEP_LIB_OBJS) \ +$(CTRL_PIC_OBJS) $(GUEST_PIC_OBJS) $(OSDEP_PIC_OBJS): xc_private.h + .PHONY: all all: build @@ -154,6 +162,7 @@ TAGS: .PHONY: clean clean: rm -rf *.rpm $(LIB) *~ $(DEPS) \ + _paths.h \ $(CTRL_LIB_OBJS) $(CTRL_PIC_OBJS) \ $(GUEST_LIB_OBJS) $(GUEST_PIC_OBJS) \ $(OSDEP_LIB_OBJS) $(OSDEP_PIC_OBJS) diff --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h index 94df6884ca..010e00fd50 100644 --- a/tools/libxc/xc_private.h +++ b/tools/libxc/xc_private.h @@ -29,6 +29,7 @@ #include #include +#include "_paths.h" #include "xenctrl.h" #include "xenctrlosdep.h"